Skip to content

Conversation

@YuriZmytrakov
Copy link
Collaborator

@YuriZmytrakov YuriZmytrakov commented Dec 22, 2025

Description:

Adds ability for item hiding via HIDE_ITEM_PATH env var which contains the path to variable on item level specifying if item should be hidden or not (true/false). Hidden items are excluded from search results and get_one_item() returns NotFoundError for hidden items.

  • Updated execute_search() to filter hidden items from search/count queries
  • Modified get_one_item() to respect hidden status
  • Uses add_hidden_filter() utility for consistent filtering

PR Checklist:

  • Code is formatted and linted (run pre-commit run --all-files)
  • Tests pass (run make test)
  • Documentation has been updated to reflect changes, if applicable
  • Changes are added to the changelog

@YuriZmytrakov YuriZmytrakov changed the title feat: Add hidden item filtering with HIDE_ITEM_PATH Add hidden item filtering with HIDE_ITEM_PATH Dec 22, 2025
Yuri Zmytrakov added 2 commits December 22, 2025 15:07
Adds ability for item hiding via HIDE_ITEM_PATH env var which contains the path to
variable on item level specifying if item should be hidden or not. Hidden items are
excluded from search results and get_one_item() returns NotFoundError for hidden items.

- Updated execute_search() to filter hidden items from search/count queries
- Modified get_one_item() to respect hidden status
- Uses add_hidden_filter() utility for consistent filtering
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants